package com.thinkingstar.iads.cs.sys.entity;

import java.util.List;

import org.nutz.dao.entity.annotation.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author steelwoo.cn
 * @time   2012-9-13 下午1:17:36
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("dc_sys_resource")
public class SysResource {

	@Column
	@Name
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String id;

	@Column
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String name;

	@Column
    @ColDefine(type = ColType.VARCHAR, width = 100)
	private String url;

	@Column
    @ColDefine(type = ColType.INT, width = 1)
	private int state;

	@Column
	private int subtype;

	@Column
	private int location;

	@Column
    @ColDefine(type = ColType.VARCHAR, width = 255)
	private String descript;

	@Column
    @ColDefine(type = ColType.VARCHAR, width = 1000)
	private String button;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String style;
    
    @Column
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String pid;
    
    private List <SysResource> resource_list;


}


